/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Date;

/**
 * <p>Project: jse2306 - Ex2</p>
 * <p>Powered by webrx On 2023-10-10 11:41:15</p>
 * <p>description: </p>
 *
 * @author 李四 [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex4 {
    public static void main(String[] args) {
        System.out.printf("%tF%n", new Date());
        System.out.printf("%tT%n", new Date());
        System.out.printf("%ta%n", new Date());
        System.out.printf("%tA%n", new Date());
        System.out.printf("%tp%n", new Date());
        System.out.printf("%tb%n", new Date());
        System.out.printf("%tB%n", new Date());

        Date dd = new Date();
        int y = dd.getYear() + 1900;
        int m = dd.getMonth() + 1;
        int d = dd.getDate();
        System.out.printf("%d年%d月%d日%n", y, m, d);
    }
}
